package com.link.wseller.serive;

import com.link.wseller.domain.OrderMaster;
import dto.OrderDTO;

import java.util.List;

public interface OrderMasterService {

    /** 创建订单 */
    int createOrder(OrderDTO orderDTO);

    /** 查询单个订单 */
    List<OrderDTO> findOrderByOpenId(String openId);

    /** 查询多个订单 */
    OrderDTO findOrderByOrderId(String orderId, Integer page, Integer size);

    /** 取消订单 */
    int cancel(OrderDTO orderDTO);

    /** 完结订单 */
    int finish(OrderDTO orderDTO);

    /** 支付订单 */
    int paidOrder(OrderDTO orderDTO);
}
